package com.twentyfour.service;

import com.twentyfour.dao.LeaderMapper;
import com.twentyfour.pojo.*;

import java.util.List;

public class LeaderServiceImpl implements LeaderService {

    public LeaderMapper leaderMapper;

    public void setLeaderMapper(LeaderMapper leaderMapper) {
        this.leaderMapper = leaderMapper;
    }


    @Override
    public int addAthlete(Athlete athlete) {
        return leaderMapper.addAthlete(athlete);
    }

    @Override
    public int addCoach(Coach coach) {
        return leaderMapper.addCoach(coach);
    }

    @Override
    public int addDoctor(Doctor doctor) {
        return leaderMapper.addDoctor(doctor);
    }

    @Override
    public int addReferee(Referee referee) {
        return leaderMapper.addReferee(referee);
    }

    @Override
    public int addLeader(Leader leader) {
        return leaderMapper.addLeader(leader);
    }

    @Override
    public int addAthleteItem(Athlete_Item athlete_item) {
        return leaderMapper.addAthleteItem(athlete_item);
    }

    @Override
    public int deleteAthlete(Integer athleteId) {
        return leaderMapper.deleteAthlete(athleteId);
    }

    @Override
    public int deleteCoach(Integer coachId) {
        return leaderMapper.deleteCoach(coachId);
    }

    @Override
    public int deleteDoctor(Integer doctorId) {
        return leaderMapper.deleteDoctor(doctorId);
    }

    @Override
    public int deleteReferee(Integer refereeId) {
        return leaderMapper.deleteReferee(refereeId);
    }

    @Override
    public int deleteLeader(Integer leaderId) {
        return leaderMapper.deleteLeader(leaderId);
    }

    @Override
    public int updateAthlete(Athlete athlete) {
        return leaderMapper.updateAthlete(athlete);
    }

    @Override
    public int updateCoach(Coach coach) {
        return leaderMapper.updateCoach(coach);
    }

    @Override
    public int updateDoctor(Doctor doctor) {
        return leaderMapper.updateDoctor(doctor);
    }

    @Override
    public int updateReferee(Referee referee) {
        return leaderMapper.updateReferee(referee);
    }

    @Override
    public int updateLeader(Leader leader) {
        return leaderMapper.updateLeader(leader);
    }

    @Override
    public List<Athlete> queryAthletesByTeamAccount(Integer teamAccount) {
        return leaderMapper.queryAthletesByTeamAccount(teamAccount);
    }

    @Override
    public List<Coach> queryCoachByTeamAccount(Integer teamAccount) {
        return leaderMapper.queryCoachByTeamAccount(teamAccount);
    }

    @Override
    public List<Doctor> queryDoctorByTeamAccount(Integer teamAccount) {
        return leaderMapper.queryDoctorByTeamAccount(teamAccount);
    }

    @Override
    public List<Referee> queryRefereeByTeamAccount(Integer teamAccount) {
        return leaderMapper.queryRefereeByTeamAccount(teamAccount);
    }

    @Override
    public List<Leader> queryLeaderByTeamAccount(Integer teamAccount) {
        return leaderMapper.queryLeaderByTeamAccount(teamAccount);
    }

    @Override
    public List<Athlete_Item> queryAthleteItemByAthleteId(Integer athleteId) {
        return leaderMapper.queryAthleteItemByAthleteId(athleteId);
    }
}
